#{extends 'orgLead.html' /}
#{ifErrors} ${error} #{/ifErrors}
#{if isOrgLead}
<h3>Set User As an Organization Lead:</h3>
<table><tr><form action="@{application.setOrgLead()} "> <td><font size="3">User: </font></td>
		<td>#{select 'uList', items:uList, labelProperty:'nickName', value:'id'/}</td></tr>
		<tr><td></td><td><input type="submit" value="Set as Organization Lead" /></td>
</form>
		</tr>




<tr><td>
<h3>Assign user to specific Department:</h3></td></tr>


  <tr><form action ="@{Application.setOrganizer()}" >
    <td><font size="3">User: </font></td>
    <td>#{select 'uList', items:uList, labelProperty:'nickName', value:'id'/}</td>
  </tr>
  <tr>
    <td><font size="3">Department: </font></td>
    <td>#{select 'dList', items:dList, labelProperty:'name', value:'id'/}</td>
  </tr>
  <tr><td></td><td><input type="submit" value="Set as Organizer" /></td></tr>


</form>
</table>
		<span style="color: #c00" class="error"> #{error 'assigned' /}</span>
#{/if}
#{else}
You are Not Authorized to Assign roles
#{/else}
<br>
<a href = "@{Application.showOrg(org.id)}">Back to ${org.name}</a>